package com.colbby.datahouse.utils;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

public class ParamizedTypeImpl implements ParameterizedType {

	private Type mainType = null;
	
	private Type[] subTypes = null;
	
	public ParamizedTypeImpl(Type mainType, Type[] typeArgs) {
		this.mainType = mainType;
		this.subTypes = typeArgs;
	}
	
	@Override
	public Type[] getActualTypeArguments() {
		return subTypes;
	}

	@Override
	public Type getRawType() {
		return mainType;
	}

	@Override
	public Type getOwnerType() {
		return null;
	}
}
